
<div>
<div>
<?php 

echo $this->htmlLink(
        array(
        'route'			=>	'default',
        'module'        => 'country',                                   
        'controller'	=>	'field',
        'action'		=>	'add'
        ),
        $this->translate("+ Add System Field"),
        array(
            'class' => 'smoothbox country_add_field buttonlink'
        )
);
/*echo $this->htmlLink(
        array(
        'route'			=>	'default',
        'module'        => 'country',                                   
        'controller'	=>	'manage',
        'action'		=>	'add'
        ),
        $this->translate("+ Add Country Field"),
        array(
            'class' => 'smoothbox country_add_field buttonlink '
            
        )
);*/
?>
</div>
<br />
<div>

<?php if( count($this->paginator) ): ?>

    <div>
        <?php 
            echo $this->paginationControl($this->paginator);
        ?>
    </div>
    <div class="my_field">
        <table class='admin_table' style="width: 100%;">
        <thead>
          <tr>
            <th>
            	<?php echo $this->translate("ID"); ?>
            </th>
            <th class=''>
            	<?php echo $this->translate("Title"); ?>
            </th>
            <th class=''>
            	<?php echo $this->translate("Creation Date"); ?>
            </th>
            <th class=''>
            	<?php echo $this->translate("Modified Date"); ?>
            </th>
            <th class=''>
            	<?php echo $this->translate("Basic Field"); ?>
            </th>
            <th>
              <?php echo $this->translate("Options") ?>
            </th>
          </tr>
        </thead>
        <tbody class="field_table_body">
             <?php  foreach ($this->paginator as $item): ?>
                <tr>
                    <td>
         	          <?php echo $item->getIdentity(); ?>
                    </td>
                    <td>
         	          <?php echo $item->title; ?>
                    </td>
                    <td>
         	          <?php echo $item->creation_date; ?>
                    </td>
                    <td>
         	          <?php echo $item->modified_date; ?>
                    </td>
                    <td>
         	          <?php echo (empty($item->parent_id)) ? "Yes":"No"; ?>
                    </td>
                    <td>
                        <?php
                        	echo $this->htmlLink(
                                        array(
                                        'route'			=>	'default',
                                        'module'        => 'country',                                   
                                        'controller'	=>	'field',
                                        'action'		=>	'edit',
                                        'id'			=>	$item->getIdentity(),
                                        'format'        =>  'smoothbox'
                                        ),
                                        $this->translate("Edit"),
                                        array(
                                            'class' => 'smoothbox',
                                        )
                         ); 
                         
                         echo " | ".$this->htmlLink(
                            array(
                                'route'			=>	'default',
                                'module'        => 'country',                                   
                                'controller'	=>	'field',
                                'action'		=>	'delete',
                                'id'			=>	$item->getIdentity(),
                                ),
                            $this->translate("Delete"),
                            array(
                                'class' => 'smoothbox',
                            )
                            );
                         ?>
                         
                    </td>
                </tr>

             <?php endforeach; ?>
        </tbody>
        </table>
    </div>
<?php endif; ?>
</div>
</div>